﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CostCenterSetup.aspx.cs" Inherits="Hisun.View.CostCenterSetup.CostCenterSetup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
 
    </head>
<body>
    <form id="form1" runat="server">
    <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">作业中心设置</div></div>
    <div class ="CommonPage_Body">


<div  style="width:400px;height:100%;float:left;">

    <asp:TreeView ID="TreeView_CenterTree" runat="server" ImageSet="News" 
                        NodeIndent="10" onselectednodechanged="TreeView_CenterTree_SelectedNodeChanged" 
                        ShowLines="True" style="margin-right: 0px" >
                        <ParentNodeStyle Font-Bold="False" />
                        <HoverNodeStyle Font-Underline="True" />
                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" 
                            VerticalPadding="0px" />
                        <NodeStyle Font-Names="Arial" Font-Size="10pt" ForeColor="Black" 
                            HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
                    </asp:TreeView>

        </div>
       
<%--<div style="width:200px;height:360px;float:left;background:red;padding-left:200px">left</div>--%>
<div style="width:150; height:auto;"><table class="CommonPage_Table">
                        <tr>
                            <td >
                                <asp:Button SkinID = "Button" ID="Button_Add" runat="server" Text="增加" 
                                    onclick="Button_Add_Click" />
                                <asp:Button SkinID = "Button" ID="Button_Edit" runat="server" Text="编辑" 
                                    onclick="Button_Edit_Click" />
                                <asp:Button SkinID = "Button" ID="Button_Del" runat="server" Text="删除" 
                                    onclick="Button_Del_Click" onclientclick="return confirm('确定删除当前记录吗？')" />
                            </td>
                            <td> <asp:HiddenField ID="EditFlag" runat="server" Value="Browse"/>
                               </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label8" runat="server" Text="作业中心ID" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:Label ID="Label_CenterID" runat="server" SkinID="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label15" runat="server" Text="上级作业中心ID" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:TextBox ID="TextBox_FatherId" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator_FatherId" runat="server" 
                                    ControlToValidate="TextBox_FatherId" ErrorMessage="*" 
                                    MaximumValue="100000" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label9" runat="server" Text="作业中心名称" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:TextBox ID="TextBox_Name" runat="server" SkinID="TextBox"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator_Name" runat="server" 
                                    ControlToValidate="TextBox_Name" ErrorMessage="*" ValidationGroup="Group"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label10" runat="server" Text="作业中心描述" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:TextBox ID="TextBox_Description" runat="server" SkinID="TextBox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label11" runat="server" Text="类型" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:DropDownList ID="DropDownList_Sort" runat="server" 
                                    DataSourceID="LinqDataSource1" DataTextField="作业中心类型名称" 
                                    DataValueField="作业中心类型ID" Enabled="False" SkinID="DropdownList">
                                </asp:DropDownList>
                                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                                    ContextTypeName="Hisun.Models.HisunDBDataContext" 
                                    Select="new (作业中心类型ID, 作业中心类型名称)" TableName="TABC_DM_CenterClasses">
                                </asp:LinqDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label12" runat="server" Text="停用" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:CheckBox ID="CheckBox_StopFlag" runat="server" Enabled="False" 
                                    SkinID="CheckBox" />
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label13" runat="server" Text="是否直接成本" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:CheckBox ID="CheckBox_DirectCost" runat="server" Enabled="False" 
                                    SkinID="CheckBox" />
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label14" runat="server" Text="部门名称" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:TextBox ID="TextBox_Organ" runat="server" Enabled="False" SkinID="TextBox"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator_Organ" runat="server" 
                                    ControlToValidate="TextBox_Organ" ErrorMessage="*" ValidationGroup="Group"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <asp:Label ID="Label16" runat="server" Text="报表列示项" SkinID="Label"></asp:Label>
                            </td>
                            <td >
                                <asp:DropDownList ID="DropDownList_CostItems" runat="server" Height="21px" 
                                    Width="117px" SkinID="DropdownList">
                                    <asp:ListItem>空</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" >
                                <asp:Button SkinID = "Button" ID="Button_Save" runat="server" Text="保存" 
                                    onclick="Button_Save_Click" ValidationGroup="Group" />
                                <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" Text="取消" 
                                    onclick="Button_Cancel_Click" />
                            </td>
                        </tr>
                        </table></div>
                      <div style="clear:both;"></div>
                        </div>
</div>


    </form>
</body>
</html>
